package org.xxx.epms.models.epms.service;

import org.xxx.epms.models.epms.model.AqiGrade;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lb
 * @since 2024-06-08
 */
public interface AqiGradeService extends IService<AqiGrade> {

    /**
     * 根据AQI等级获取AQI等级信息
     * @param level
     * @return
     */
    AqiGrade getAqiGradeByLevel(Integer level );


    /**
     * 通过co，so2，pm2.5值获取AQI等级
     * @param coValue
     * @return
     */
    public Integer getAqiGradeByCoValue(Integer coValue);
    public Integer getAqiGradeBySo2Value(Integer so2Value);
    public Integer getAqiGradeByPmValue(Integer pmValue);
}
